import 'package:car_map/page/routers/router_init.dart';
import 'package:car_map/page/statisticspage/temperature_page.dart';
import 'package:fluro/fluro.dart';
import 'package:fluro/src/router.dart';

import 'Ignition_page.dart';
import 'addoil_count_page.dart';
import 'mileage_count_page.dart';

class StatisticsRouter with IRouterProvider{

  //公里数统计
  static String mileageCountPage='/mileageCountPage';
  //加油统计
  static String addoilCountPage='/addoilCountPage';
  //点火统计
  static String ignitionPage='/IgnitionPage';
  //温度统计
  static String temperaturePage='/temperaturePage';

  @override
  void initRouter(Router router) {
    // TODO: implement initRouter
    router.define(mileageCountPage, handler: Handler(handlerFunc: (_,params){
      return MileageCountPage();
    }));

    router.define(addoilCountPage, handler: Handler(handlerFunc: (_,params){
      return AddoilCountPage();
    }));

    router.define(ignitionPage, handler: Handler(handlerFunc: (_,params){
      return IgnitionPage();
    }));

    router.define(temperaturePage, handler: Handler(handlerFunc: (_,params){
      return TemperaturePage();
    }));

  }

}